using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetInviteFriendRequest : GeneratedMessageLite<GetInviteFriendRequest, GetInviteFriendRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetInviteFriendRequest, GetInviteFriendRequest.Builder>
		{
			private bool resultIsReadOnly;
			private GetInviteFriendRequest result;
			protected override GetInviteFriendRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetInviteFriendRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetInviteFriendRequest DefaultInstanceForType
			{
				get
				{
					return GetInviteFriendRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint FriendType
			{
				get
				{
					return this.result.FriendType;
				}
				set
				{
					this.SetFriendType(value);
				}
			}
			public Builder()
			{
				this.result = GetInviteFriendRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetInviteFriendRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetInviteFriendRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetInviteFriendRequest other = this.result;
					this.result = new GetInviteFriendRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetInviteFriendRequest.Builder Clear()
			{
				this.result = GetInviteFriendRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetInviteFriendRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetInviteFriendRequest.Builder(this.result);
				}
				return new GetInviteFriendRequest.Builder().MergeFrom(this.result);
			}
			public override GetInviteFriendRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetInviteFriendRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetInviteFriendRequest)
				{
					return this.MergeFrom((GetInviteFriendRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetInviteFriendRequest.Builder MergeFrom(GetInviteFriendRequest other)
			{
				return this;
			}
			public override GetInviteFriendRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetInviteFriendRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetInviteFriendRequest._getInviteFriendRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetInviteFriendRequest._getInviteFriendRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (num3 != 16u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasFriendType = input.ReadUInt32(ref this.result.friendType_);
						}
					}
					else
					{
						BaseRequest.Builder builder = BaseRequest.CreateBuilder();
						if (this.result.hasBaseRequest)
						{
							builder.MergeFrom(this.BaseRequest);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.BaseRequest = builder.BuildPartial();
					}
				}
				return this;
			}
			public GetInviteFriendRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public GetInviteFriendRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public GetInviteFriendRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public GetInviteFriendRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public GetInviteFriendRequest.Builder SetFriendType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasFriendType = true;
				this.result.friendType_ = value;
				return this;
			}
			public GetInviteFriendRequest.Builder ClearFriendType()
			{
				this.PrepareBuilder();
				this.result.hasFriendType = false;
				this.result.friendType_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int FriendTypeFieldNumber = 2;
		private static readonly GetInviteFriendRequest defaultInstance;
		private static readonly string[] _getInviteFriendRequestFieldNames;
		private static readonly uint[] _getInviteFriendRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasFriendType;
		private uint friendType_;
		private int memoizedSerializedSize = -1;
		public static GetInviteFriendRequest DefaultInstance
		{
			get
			{
				return GetInviteFriendRequest.defaultInstance;
			}
		}
		public override GetInviteFriendRequest DefaultInstanceForType
		{
			get
			{
				return GetInviteFriendRequest.DefaultInstance;
			}
		}
		protected override GetInviteFriendRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint FriendType
		{
			get
			{
				return this.friendType_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasFriendType)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.FriendType);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetInviteFriendRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getInviteFriendRequestFieldNames = GetInviteFriendRequest._getInviteFriendRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, getInviteFriendRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasFriendType)
			{
				output.WriteUInt32(2, getInviteFriendRequestFieldNames[1], this.FriendType);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasFriendType)
			{
				num ^= this.friendType_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			GetInviteFriendRequest getInviteFriendRequest = object_0 as GetInviteFriendRequest;
			return getInviteFriendRequest != null && (this.hasBaseRequest == getInviteFriendRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(getInviteFriendRequest.baseRequest_))) && (this.hasFriendType == getInviteFriendRequest.hasFriendType && (!this.hasFriendType || this.friendType_.Equals(getInviteFriendRequest.friendType_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetInviteFriendRequest, GetInviteFriendRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<GetInviteFriendRequest, GetInviteFriendRequest.Builder>.PrintField("FriendType", this.hasFriendType, this.friendType_, writer);
		}
		public static GetInviteFriendRequest ParseFrom(byte[] data)
		{
			return GetInviteFriendRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetInviteFriendRequest MakeReadOnly()
		{
			return this;
		}
		public static GetInviteFriendRequest.Builder CreateBuilder()
		{
			return new GetInviteFriendRequest.Builder();
		}
		public override GetInviteFriendRequest.Builder ToBuilder()
		{
			return GetInviteFriendRequest.CreateBuilder(this);
		}
		public override GetInviteFriendRequest.Builder CreateBuilderForType()
		{
			return new GetInviteFriendRequest.Builder();
		}
		public static GetInviteFriendRequest.Builder CreateBuilder(GetInviteFriendRequest prototype)
		{
			return new GetInviteFriendRequest.Builder(prototype);
		}
		static GetInviteFriendRequest()
		{
			GetInviteFriendRequest.defaultInstance = new GetInviteFriendRequest().MakeReadOnly();
			GetInviteFriendRequest._getInviteFriendRequestFieldNames = new string[]
			{
				"BaseRequest",
				"FriendType"
			};
			GetInviteFriendRequest._getInviteFriendRequestFieldTags = new uint[]
			{
				10u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.GetInviteFriendRequest.Descriptor, null);
		}
	}
}
